<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/bs/css/bootstrap.min.css">
<link href="../Public/css/reset.css" type="text/css" rel="stylesheet" >
<link href="../Public/css/common.css" type="text/css" rel="stylesheet" >
<link href="../Public/css/index.css" type="text/css" rel="stylesheet" >
<link rel="stylesheet" href="../Public/css/filter.css" type="text/css">
<link rel="stylesheet" type="text/css" href="../Public/css/detail.css"><!-- 商品细节 -->
<link rel="stylesheet" type="text/css" href="../Public/css/reg.css"><!-- 注册页 -->
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/bs/js/bootstrap.js"></script>
<script type="text/javascript" src="../Public/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/angular.min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.4&ak=MYmkCkYyS3ps8H8Lklij7uGbzQxWWIT3"></script><!-- 添加商铺，百度地图API -->
<meta name="keywords" content="" />
<meta name="description" content="" />
<title><?php echo ($webInfo["title"]); ?></title>

</head>
<body>
	<!-- 顶部开始 -->
	<div id="top">
		<div class='position'>
			<div class='left'>
				上团购王，啥都有!
			</div>
			<div class='right'>
				<a href="javascript:addFavorite2();">收藏</a>
			</div>
		</div>
	</div>
	<!-- 顶部结束 -->
	<!-- 头部开始 -->
	<div id="header">
		<div class='position'>
			<div class='logo'>
				<a style="line-height:60px;" href="__ROOT__">团购王</a>
				<a style="font-size:16px;" href="__ROOT__">www.tuangouwang.com</a>
			</div>
			<div class='search'>
				<div class='item'>
					<a href="">小时代</a>
					<a href="">KTV</a>
					<a href="">电影</a>
					<a href="">全聚德</a>
				</div>
				<div class='search-bar'>
					<input class='s-text' type="text" name="keywords" id="请输入商品名称，地址等">
					<input class='s-submit' type="submit" id='搜索'>
				</div>
			</div>
			<div class='commitment'>
				
			</div>
		</div>
	</div>
	<!-- 头部结束 -->
	
	<!-- 导航开始-->
	<div id="nav">
		<div class='position'>
			<!-- 分类相关 -->
			<div class='category'>
			<!-- get中没有cid的时候首页高亮，有cid的时候对应的菜单高亮 -->
				<?php if($_GET['cid'] == false): ?><a class='active' href="__ROOT__">首页</a>
				<?php else: ?>
					<a  href="__ROOT__">首页</a><?php endif; ?>
				
				<?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><!-- $_GET中的cid或者cid的父级pid等于$v['cid']时高亮 -->
					<?php if($_GET['cid'] == $v['cid']||$pid == $v['cid']): ?><a class='active'  href="<?php echo U('Index/index','','');?>/cid/<?php echo ($v["cid"]); ?>"><?php echo ($v["cname"]); ?></a>
					<?php else: ?>
						<a  href="<?php echo U('Index/index','','');?>/cid/<?php echo ($v["cid"]); ?>"><?php echo ($v["cname"]); ?></a><?php endif; endforeach; endif; else: echo "" ;endif; ?>
			</div>
			<!-- 用户相关 -->
			<div id="user-relevance" class='user-relevance'>
				
				<!--登录注册-->
					<div class='user-nav login-reg'>
						<a  class='title' href="<?php echo U('Reg/index');?>">注册</a>
					</div>
					<div class='user-nav login-reg'>	
						<a class='title' href="">登录</a>
					</div>
				<!--我的团购 -->	
					<div class='user-nav my-hdtg '>
						<a class='title' href="">我的团购</a>
						<ul class="menu">
							<li><a href="">我的订单</a></li>	
							<li><a href="">我的评价</a></li>
							<li><a href="">我的收藏</a></li>
							<li><a href="">我的成长</a></li>
							<li><a href="">账户余额</a></li>
							<li><a href="">账户充值</a></li>
							<li><a href="">账户设置</a></li>
						</ul>
					</div>
				<!-- 最近浏览 -->	
					<div  class='user-nav recent-view '>
						<a class='title' href="">最近浏览</a>
						<ul class="menu">
							<li>
								<a class='image' href="">
									<img src="http://p1.meituan.net/80.50/deal/__10119572__2038276.jpg" />
								</a>
								<div>
									<h4>
										<a href="">上岛咖啡双人下午茶套餐，五道口</a>
									</h4>
									<span><strong>¥25</strong><del>36</del></span>
								</div>					
							</li>
							<li>
								<a class='image' href="">
									<img src="http://p1.meituan.net/80.50/deal/__10119572__2038276.jpg" />
								</a>
								<div>
									<h4>
										<a href="">上岛咖啡双人下午茶套餐，五道口</a>
									</h4>
									<span><strong>¥25</strong><del>36</del></span>
								</div>					
							</li>
							<li>
								<a class='image' href="">
									<img src="http://p1.meituan.net/80.50/deal/__10119572__2038276.jpg" />
								</a>
								<div>
									<h4>
										<a href="">上岛咖啡双人下午茶套餐，五道口</a>
									</h4>
									<span><strong>¥25</strong><del>36</del></span>
								</div>					
							</li>
							<li>
								<a class='image' href="">
									<img src="http://p1.meituan.net/80.50/deal/__10119572__2038276.jpg" />
								</a>
								<div>
									<h4>
										<a href="">上岛咖啡双人下午茶套餐，五道口</a>
									</h4>
									<span><strong>¥25</strong><del>36</del></span>
								</div>					
							</li>
							<li>
								<a class='image' href="">
									<img src="http://p1.meituan.net/80.50/deal/__10119572__2038276.jpg" />
								</a>
								<div>
									<h4>
										<a href="">上岛咖啡双人下午茶套餐，五道口</a>
									</h4>
									<span><strong>¥25</strong><del>36</del></span>
								</div>					
							</li>
							<p class='clear'><a href="">清空最近浏览记录</a></p>
						</ul>
					</div>
					<div  class='user-nav my-cart '>
						<a class='title' href=""><i>&nbsp;</i>购物车</a>
						<ul class="menu">
							<li>
								<a class='image' href="">
									<img src="http://p1.meituan.net/80.50/deal/__10119572__2038276.jpg" />
								</a>
								<div>
									<h4>
										<a href="">上岛咖啡双人下午茶套餐，五道口</a>
									</h4>
									<span><strong>¥25</strong><a href="">删除</a></span>
								</div>					
							</li>
							<p class='clear'><a href="">查看我的购物车</a></p>
						</ul>
					</div>
			</div>
		</div>
	</div> 
	<!-- 导航结束 -->
	
	<!-- 商品过滤开始 -->
	
	<!-- 商品过滤结束 -->
	
		<!-- 页面主体开始 -->
		<div id="main">
		
	<div id="map" class='position'>
		<a href="<?php echo U('Index/index','','');?>/lid/<?php echo ($goods["lid"]); ?>"><?php echo ($goods["lname"]); ?></a><span>»</span><a href="<?php echo U('Index/index','','');?>/cid/<?php echo ($goods["cid"]); ?>"><?php echo ($goods["cname"]); ?></a><span>»</span><a href="#"><?php echo ($goods["shopname"]); ?></a>
	</div>
	<div id="content" class='position' style="height:3000px;">
		<div class='content-left'>
			<div class="goods-intro">
				<div class='goods-title'>
					<h1><?php echo ($goods["main_title"]); ?></h1>
					<h3><?php echo ($goods["sub_title"]); ?></h3>
				</div>
				<div class='deal-intro'>
					<div class='buy-intro'>
						<div class='price'>
							<div class='discount-price'>
								<span>¥</span><?php echo ($goods["price"]); ?>
							</div>
								<div class='cost-price'>
									
									<span class='discount'><?php echo ($goods["zekou"]); ?>折</span>
									门店价<b>¥<?php echo ($goods["old_price"]); ?></b>
								</div>
						</div>
						<div class='deal-buy-cart'>
							<a href="" class='buy'></a>
							<a href="" class='cart'></a>
						</div>
						<div class='purchased'>
							<p class='people'>
								<span><?php echo ($goods["buy"]); ?></span>人已团购
							</p>
							<p class='time'>
								<?php echo ($goods["time"]); ?>
							</p>
						</div>
						<ul class='refund-intro'>
							<?php if(is_array($goods["goods_server"])): $i = 0; $__LIST__ = $goods["goods_server"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li>
									<?php echo ($v['img']); ?>
									<span class='text'><?php echo ($v['name']); ?></span>
								</li><?php endforeach; endif; else: echo "" ;endif; ?>
						</ul>                                                            
					</div>
					<div class='image-intro'>
						<img src="__PUBLIC__/<?php echo ($goods["goods_img"]); ?>_460x280.jpg"/>

					</div>
				</div>
				<div class='collect'>
					<a class='collect-link' href=''><i></i>收藏本单</a>
					
					<div class='share'>
						
					</div>
					
				</div>
			</div>
			<div class='detail'>
				<ul class='plot-points'>
					<li class='active'><a href="#shop-site">商家位置</a></li>
					<li><a href="#details">本单详情</a></li>
					<li><a href="#comment">消费评价</a></li>
				</ul>
				<div id="shop-site" class='shop-site'>
					<p class='site-title'>商家位置</p>
					<div class='box'>
						<div class='map' id="bmap">
						</div>
						<div class='info'>
							<h3><?php echo ($goods["shopname"]); ?></h3>
							<dl>
								<dt>地址:</dt>
								<dd><?php echo ($goods["shopaddress"]); ?></dd>
							</dl>
							<dl>
								<dt>地铁:</dt>
								<dd><?php echo ($goods["metroaddress"]); ?></dd>
							</dl>
							<dl>
								<dt>电话:</dt>
								<dd><?php echo ($goods["shoptel"]); ?></dd>
							</dl>
						</div>
					</div>
				</div>
				<div id="details"  class='details'>
					<?php echo ($goods["detail"]); ?>
				</div>
				<div id="comment" class='comment'>
					<div class='comment-list-title'>
						<span>全部评价</span>
						<a class='order-time' href="">按时间<i></i></a>
					</div>
					<div class='comment-list'>
						<div class='list-con'>
							<div class='con-top'>
								<span class='username'>sdas</span>
								<span class='time'>评价于:<em>2013-08-04</em></span>
							</div>
							<p>
								说是香草拿铁不是很苦，结果根本不是想象中的味道！像速溶冲调！还要另加五元？有此一说吗？银座店环境一般！
							</p>
						</div>
						
					</div>
					<div class='comment-page'>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
					</div>
				</div>
			</div>
		
		</div>
		<div class='content-right'>
			<div class='recommend'>
				<h3 class='recommend-title'>
					看过本团购的用户还看了
				</h3>
				<div class='recommend-goods'>
					<a class='goods-image' href="">
						<img alt="图像加载失败.." src="http://p0.meituan.net/200.121/deal/__5738304__3391447.jpg">
					</a>
					<h4>
						<a href="">【五道口】上岛咖啡：双人下午茶套餐，美味齐分享</a>
					</h4>
					<p>
						<strong>¥39.8</strong>
						<span class='cost-price'>门店价<del>144</del></span>
						<span class='num'>
							<span>173</span>
							 人已团购
						</span>
					</p>
				</div>
			</div>
		</div>
	</div>	
	<div ng-app='hd' ng-controller='ctrl'>
		
	</div>
	<script type="text/javascript">
		var shopcoord=<?php echo ($goods["shopcoord"]); ?>;
		// 百度地图API功能
			var map = new BMap.Map("bmap");
			map.centerAndZoom(new BMap.Point(116.331398,39.897445),11);
			map.enableScrollWheelZoom(true);
			
			// 用经纬度设置地图中心点
					var new_point = new BMap.Point(shopcoord.lng,shopcoord.lat);
					var marker = new BMap.Marker(new_point);  // 创建标注
					map.addOverlay(marker);              // 将标注添加到地图中
					map.panTo(new_point);      

		var top_left_control = new BMap.ScaleControl({anchor: BMAP_ANCHOR_TOP_LEFT});// 左上角，添加比例尺
		var top_left_navigation = new BMap.NavigationControl();  //左上角，添加默认缩放平移控件
		var top_right_navigation = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_RIGHT, type: BMAP_NAVIGATION_CONTROL_SMALL}); //右上角，仅包含平移和缩放按钮
		/*缩放控件type有四种类型:
		BMAP_NAVIGATION_CONTROL_SMALL：仅包含平移和缩放按钮；BMAP_NAVIGATION_CONTROL_PAN:仅包含平移按钮；BMAP_NAVIGATION_CONTROL_ZOOM：仅包含缩放按钮*/
		
		//添加控件和比例尺
			map.addControl(top_left_control);        
			map.addControl(top_left_navigation);     
			map.addControl(top_right_navigation);    



	</script>


		</div>
		<!-- 页面主体结束 -->
	
		<div class='c'></div>
		
	</body>
	</html>